\input ../../default-cn-cfg.mkvi
\setupcaption[table][location=top,suffix=\floatcaptionsuffix]

\starttext
\dorecurse{1}{ \input ../../hetangyuese/htys01.mkvi}

\startplacefloat[table][title=最简单表格,location={left}]

  \startxtable[textwidth=10cm,option=stretch,align=middle,bodyfont={rm,10pt}]

    \startxtablehead[foregroundcolor=red]
      \fssanhao %   设置字体为仿宋
      \startxrow
        \startxcell  表头 1
        \stopxcell
        \startxcell  表头 2
        \stopxcell
        \startxcell  表头 3
        \stopxcell
        \startxcell  表头 4
        \stopxcell
      \stopxrow
    \stopxtablehead

    \startxtablefoot[foregroundcolor=blue]
      \tfwuhao %   设置字体为宋
      \startxrow
        \startxcell  表脚 1
        \stopxcell
        \startxcell  表脚 2
        \stopxcell
        \startxcell  表脚 3

        \stopxcell
        \startxcell  表脚 4
        \stopxcell
      \stopxrow
    \stopxtablefoot

    \startxtablebody
      \ktsihao %   设置字体为楷体
      \dorecurse{10}{
      \startxrow
        \startxcell  行\low{\recurselevel}格1
        \stopxcell
        \startxcell  行\low{\recurselevel}格2
        \stopxcell
        \startxcell  行\low{\recurselevel}格3
        \stopxcell
        \startxcell  行\low{\recurselevel}格4
        \stopxcell
      \stopxrow
    }
    \stopxtablebody

  \stopxtable
\stopplacefloat

\dorecurse{2}{ \input ../../hetangyuese/htys01.mkvi}
\stoptext
